import { createRouter, createWebHistory } from 'vue-router'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      name: 'login',//登录页面
      component: () => import('../views/Login/index.vue')//当页面没有任何路径时，默认跳转到登录页面
    },
    {
      path: '/login',
      name: 'login',
      component: () => import('../views/Login/index.vue')
    },
    {
      path: '/login/use',
      name: 'login/use',
      component: () => import('../views/Login/use.vue')
    },
    {
      path: '/login/zhang',
      name: 'login/zhang',
      component: () => import('../views/Login/zhang.vue')
    },
    {
      path: '/login/xu',
      name: 'login/xu',
      component: () => import('../views/Login/xu.vue')
    },
    {
      path: '/login/zhux',
      name: 'login/zhux',
      component: () => import('../views/Login/zhux.vue')
    },
    {
      path: '/Home',//首页
      name: 'home',
      component: () => import('../views/Home/index.vue')
    },
    {
      path: '/Home/homesearch',//首页下顶部搜索历史页面
      name: 'Homehomesearch',
      component: () => import('../views/Home/homesearch.vue')
    },
    {
      path: '/Home/homesearchPage/:title',//首页的搜索页面
      name: 'HomehomesearchPage',
      component: () => import('../views/Home/homesearchPage.vue')
    },
    {
      path: '/Xiao',
      name: 'xiao',//消息
      component: () => import('../views/Xiao/index.vue')
    },

    //消息第二个页面
    {
      path: '/xiao/index',
      name: 'xiao/index',
      component: () => import('../views/xiaopage/Index.vue')
    },
    //点击进入 视频播放页面
    {
      path: '/xiao/dianj',
      name: 'xiao/dianj',
      component: () => import('../views/xiaopage/Dianj.vue')
    },
    // 视频页面
    {
      path:'/xiao/shipin',
      name:'xiao/shipin',
      component:()=>import('../views/xiaopage/Shipin.vue')
    },

    // 预约挂号
    {
      path: '/xiao/yuyue',
      name: 'xiao/yuyue',
      component: () => import('../views/xiaopage/Yuyue.vue')
    },
    // 极速问诊
    {
      path: '/xiao/jisu',
      name: 'xiao/jisu',
      component: () => import('../views/xiaopage/Jisu.vue')
    },
    //  医生详情
    {
      path: '/xiao/xiangys',
      name: 'xiao/xiangys',
      component: () => import('../views/xiaopage/Xiangys.vue')
    },
    //  更多热门医生
    {
      path: '/xiao/yisheng',
      name: 'xiao/yisheng',
      component: () => import('../views/xiaopage/Yisheng.vue')
    },
    // 首页极速问诊
    {
      path: '/xiao/wenzhen',
      name: 'xiao/wenzhen',
      component: () => import('../views/xiaopage/Wenzhen.vue')
    },
    // 搜索页面
    {
      path: '/xiao/selector',
      name: '/xiao/selector',
      component: () => import('../views/xiaopage/selector.vue')
    },
    // 消息的第九个页面， 热门医院更多
    {
      path: '/xiao/yongy',
      name: 'xiao/yongy',
      component: () => import('../views/xiaopage/Yongy.vue')
    },
    // 消息的第十个页面， 详情热门医院
    {
      path: '/xiao/xiangyy',
      name: 'xiao/xiangyy',
      component: () => import('../views/xiaopage/Xiangyy.vue')
    },
    // 去挂号
    {
      path: '/xiao/quguahao',
      name: 'xiao/quguahao',
      component: () => import('../views/xiaopage/Quguahao.vue')
    },
//确认挂号
    {
      path:'/xiao/qrgh',
      name:'xiao/qrgh',
      component:()=>import('../views/xiaopage/Qrgh.vue')
    },
    //我的挂号
     {
      path:'/xiao/wdgh',
      name:'xiao/wdgh',
      component:()=>import('../views/xiaopage/Wdgh.vue')
    },
    // 康复页面
    {
      path: '/kf',
      name: 'kf',
      component: () => import('../views/kf/index.vue')
    },
    // 评论
    {
      path:'/ping',
      name:'ping',
      component:()=>import('../views/wys/ping/ping.vue')
    },
    // 问医生
    {
      path: '/wys',
      name: 'wys',
      component: () => import('../views/wys/wys.vue')
    },
    //  锦旗支付
    {
      path: '/banners',
      name: 'banners',
      component: () => import('../views/wys/banners/index.vue')
    },
    // 更多医生
    {
      path: '/gdys',
      name: 'gdys',
      component: () => import('../views/gdys/index.vue')
    },
     // 锦旗
    {
      path:'/jq',
      name:'jq',
      component:()=>import('../views/wys/jq/index.vue')
    },
    // 送锦旗
    {
      path:'/sjq',
      name:'sjq',
      component:()=>import('../views/wys/jq/sjq/index.vue')
    },
    // 支付
    {
      path:'/zf',
      name:'zf',
      component:()=>import('../views/wys/zf/index.vue')
    },
    // 支付
    {
      path: '/zhi',
      name: 'zhi',
      component: () => import('../views/wys/zhi/zhi.vue')
    },
    // 档案
    {
      path: '/danga',
      name: 'danga',
      component: () => import('../views/wys/danga/index.vue')
    },
    // 儿科弹框
    {
      path: '/ekk',
      name: 'ekk',
      component: () => import('../views/gdys/ekk/index.vue')
    },
    // 全国弹框
    {
      path: '/qgk',
      name: 'qgk',
      component: () => import('../views/gdys/qgk/index.vue')
    },
    // 排序弹框
    {
      path: '/pxk',
      name: 'pxk',
      component: () => import('../views/gdys/pxk/index.vue')
    },
    // 问答
    {
      path: '/wd',
      name: 'wd',
      component: () => import('../views/wd/index.vue')
    },
    // 开方
    {
      path: '/fzsq',
      name: 'fzsq',
      component: () => import('../views/wys/fzsq/index.vue')
    },
    // // 申请用药
    // {
    //   path:'/sqyy',
    //   name:'sqyy',
    //   component:()=>import('../views/sqyy/index.vue')
    // },
    // 优选药房
    {
      path: '/yxyf',
      name: 'yxyf',
      component: () => import('../views/wys/yxyf/index.vue')
    },
    // 问题反馈
    {
      path: '/wtfk',
      name: 'wtfk',
      component: () => import('../views/wtfk/index.vue')
    },
    // 图片咨询
    {
      path: '/picture',
      name: 'picture',
      component: () => import('../views/wys/picture/index.vue')
    },
    // 图文咨询
    {
      path: '/tu',
      name: 'tu',
      component: () => import('../views/wys/tu/index.vue')
    },
    // 电话咨询
    {
      path: '/phone',
      name: 'phone',
      component: () => import('../views/wys/phone/index.vue')
    },
    // 搜索
    {
      path: '/search',
      name: 'search',
      component: () => import('../views/search/index.vue')
    },
    // 测试
    {
      path: '/wz',
      name: 'wz',
      component: () => import('../views/search/wz/index.vue')
    },
    {
      path: '/Ding',
      name: 'ding',
      children: [
        {
          path: '/Ding/dingd',
          name: 'dingd',
          component: () => import('../views/Ding/dingd.vue')
        },
        {
          path: '/Ding/add',
          name: 'add',
          component: () => import('../views/Ding/add.vue')
        },
        {
          path: '/Ding/zhu',
          name: 'zhu',
          component: () => import('../views/Ding/zhu.vue')
        },
        {
          path: '/Ding/login',
          name: 'login',
          component: () => import('../views/Ding/login.vue')
        },
        {
          path: '/Ding/xiu',
          name: 'xiu',
          component: () => import('../views/Ding/xiu.vue')
        },
        {
          path: '/Ding/yin',
          name: 'yin',
          component: () => import('../views/Ding/yin.vue')
        },
        {
          path: '/Ding/she',
          name: 'she',
          component: () => import('../views/Ding/she.vue')
        },
        {
          path: '/Ding/cart',
          name: 'cart',
          component: () => import('../views/Ding/cart.vue')
        },
        {
          path: '/Ding/dizhi',
          name: 'dizhi',
          component: () => import('../views/Ding/dizhi.vue')
        },
        {
          path: '/Ding/zhen',
          name: 'zhen',
          component: () => import('../views/Ding/zhen.vue')
        },
        {
          path: '/Ding/jian',
          name: 'jian',
          component: () => import('../views/Ding/jian.vue')
        },
        {
          path: '/Ding/med',
          name: 'med',
          component: () => import('../views/Ding/med.vue')
        },
        {
          path: '/Ding/order',
          name: 'order',
          component: () => import('../views/Ding/order.vue')
        },
        {
          path: '/Ding/doctor',
          name: 'doctor',
          component: () => import('../views/Ding/doctor.vue')
        },
        {
          path: '/Ding/sui',
          name: 'sui',
          component: () => import('../views/Ding/sui.vue')
        },
        {
          path: '/Ding/receiving',
          name: 'receiving',
          component: () => import('../views/Ding/receiving.vue')
        },
        {
          path: '/Ding/coupons',
          name: 'coupons',
          component: () => import('../views/Ding/coupons.vue')
        },
        {
          path: '/Ding/outpatient',
          name: 'outpatient',
          component: () => import('../views/Ding/outpatient.vue')
        },
        {
          path: '/Ding/price',
          name: 'price',
          component: () => import('../views/Ding/price.vue')
        },
        {
          path: '/Ding/user',
          name: 'user',
          component: () => import('../views/Ding/user.vue')
        },
        {
          path: '/Ding/users',
          name: 'users',
          component: () => import('../views/Ding/users.vue')
        },
        {
          path: '/Ding/xinjian',
          name: 'xinjian',
          component: () => import('../views/Ding/xinjian.vue')
        },
        {
          path: '/Ding/save',
          name: 'save',
          component: () => import('../views/Ding/save.vue')
        },
        {
          path: '/Ding/privacy',//订单页面隐私协议
          name: 'privacy',
          component: () => import('../views/Ding/privacy.vue')
        },
        {
          path: '/Ding/aboutUs',//订单页面关于我们
          name: 'aboutUs',
          component: () => import('../views/Ding/aboutUs.vue')
        },
        {
          path: '/Ding/contactUs',//订单页面-》关于我们-》联系我们
          name: 'contactUs',
          component: () => import('../views/Ding/contactUs.vue')
        },
        {
          path: '/Ding/businessQualifications',//订单页面-》关于我们-》营业资质
          name: 'businessQualifications',
          component: () => import('../views/Ding/businessQualifications.vue')
        },
        {
          path: '/Ding/after-salesPolicy',//订单页面-》关于我们-》售后政策
          name: 'after-salesPolicy',
          component: () => import('../views/Ding/after-salesPolicy.vue')
        },
        {
          path: '/Ding/communitySelf-regulationPact',//订单页面-》关于我们-》社区自律公约
          name: 'communitySelf-regulationPact',
          component: () => import('../views/Ding/communitySelf-regulationPact.vue')
        },

      ]
    },
    {
      path: '/xiao/shipin',
      name: 'xiao/shipin',
      component: () => import('../views/xiaopage/Shipin.vue')
    }
  ]
})

export default router
